﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp7
{
    class IronNpc:NPC
    {
        private string ironinfo;
        public string Ironinfo
        {
            get { return ironinfo; }
            set { ironinfo = value; }
        }
        public IronNpc(string name, npcType type, string ironinfo) : base(name, type)
        {
            this.Ironinfo = ironinfo;
        }

        public override void Speak()
        {
            Console.WriteLine("我是{0}，{1}:{2}", this.Name, this.Type, this.ironinfo);
        }
    }
}
